package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 仓库收款单更新DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value="ReceiptEditDTO对象", description="仓库收款单更新DTO")
public class ReceiptEditDTO extends BasicEntity {


    @ApiModelProperty(value = "收款单号",required = true)
    @NotNull(message = "收款单号不能为空")
    private String code;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "状态:0(保存)、1(提交)",required = true)
    private String status;


    @ApiModelProperty(value = "收款金额",required = true)
    @Min(value = 0, message = "请输入正确的收款金额")
    @Digits(integer = 20, fraction = 6, message = "请输入正确的收款金额")
    private BigDecimal amountCollected;


    @ApiModelProperty(value = "待修改的结算明细")
    private List<ReceiptItemEditDTO> receiptItemList;

    @ApiModelProperty(value = "要删除的结算明细Code")
    private List<String> removeItemCodes;
}
